import login from './modules/login'
import user from './modules/user'
import { createContext, useContext } from 'react'

class RootStore {
  storeLogin = new login()
  storeUser = new user()
}

const store = new RootStore()

const Context = createContext(store)

export default function useStore() {
  return useContext(Context)
}
